import Cookies from 'js-cookie'

const TokenKey = 'token'

const handleIdKey = 'handleId'

// TokenKey的设置
export function getToken() {
  return Cookies.get(TokenKey)
}

export function setToken(token) {
  return Cookies.set(TokenKey, token)
}

export function removeToken() {
  return Cookies.remove(TokenKey)
}


// handleIdKey的设置
export function getHandleId() {
  return Cookies.get(handleIdKey)
}

export function setHandleId(handleId) {
  return Cookies.set(handleIdKey, handleId)
}

export function removeHandleId() {
  return Cookies.remove(handleIdKey)
}
